home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / read_bytes < prev    next >
Text File  |  2001-04-06  |  599b  |  16 lines

  1. SYNOPSIS
  2.         string read_bytes(string file, int start, int number)
  3.  
  4. DESCRIPTION
  5.         Reads a given amount of bytes from file.
  6.         If <start> is not given or 0, the file is read from the
  7.         beginning, else from the <start>th byte on. If <start> is
  8.         negative, it is counted from the end of the file.
  9.         <number> is the number of bytes to read. 0 or negative values
  10.         are possible, but not useful.
  11.         If <start> would be outside the actual size of the file, 0 is
  12.         returned instead of a string.
  13.  
  14. SEE ALSO
  15.         read_file(E), write_bytes(E), write_file(E)
  16.